{% extends '/%s/layout.html'|format(app_label) %}
{% block subtitle %}{{object}}{% endblock %}
{% block main %}
<p><a href="/">{{_('Home')}}</a>&gt;&gt;<a href="/{{app_label}}/{{model}}/">{{_('%s list')|format(model_class._meta.verbose_name)|capitalize}}</a>&gt;&gt;{{object}}</p>
<table>
{{ tags.detail(object) }}
</table>
<p>
{%set can_delete=user.has_perm(app_label~'.delete_'~model) %}
{% if user.has_perm(app_label~'.change_'~model) %}
    <a href="/{{app_label}}/{{model}}/{{object.pk}}/edit/">{{_('Modify %s')|format(object)}}</a>
    {% if can_delete %}|{% endif %}
{% endif %}
{% if can_delete %}
    <a href="/{{app_label}}/{{model}}/{{object.pk}}/delete/">{{_('Delete %s')|format(object)}}</a>
{% endif %}
</p>
{% endblock %}